<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title></title>
  <!--引入Vue-->
  <script type="text/javascript" src="../js/vue.js"></script>
  <style>
    [v-cloak]{
      display: none;
    }
  </style>
</head>
<body>
<div class="root">
  <h1 v-text="name"></h1>
</div>
</body>

<script type="text/javascript">
  /**
   * v-cloak可以在网络有延迟的时候,不让未解析的节点展示出来
   */
  new Vue({
    el: '.root',
    data: {
      name: 'Jack'
    }
  })
</script>
</html>
